package cn.com.dhcc.adam.spring.mvc.one;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
@Qualifier("PersonInfoServiceImplDefault")
public class PersonInfoServiceImpl implements PersonInfoService {
	
	public String basicInfo(String personID){
		System.out.println("得到人员("+ personID + ")的个人信息");
		return "人员(id=" + personID + ")基本信息：\n" + personInfoDao.personInfo();
	}
	@Autowired
	public PersonInfoDao personInfoDao;
	
	//@ConstructorProperties(value = { "cn.com.dhcc.adam.spring.mvc.PersonInfoDao" })
	public PersonInfoServiceImpl(PersonInfoDao dao) {
		this.personInfoDao = dao;
	}
	
	public PersonInfoServiceImpl(){
		
	}
	
}
